package com.my.job.scheduled;

import com.my.job.scheduled.entity.SpringScheduledCron;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author timo 2021/4/1
 */
@Component
@Slf4j
public class ExamAutoCommitTask implements ScheduledOfTask {
    @Override
    @Transactional(rollbackFor = Exception.class)
    public void execute(SpringScheduledCron scheduledCron) {

        /*执行业务*/
    }

}
